package com.scf.fruit.business.useraddress.controller;

import com.scf.fruit.business.useraddress.bo.UserAddressBo;
import com.scf.fruit.util.ResponseVo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author : 孙超飞
 * @title :
 * @description :
 * @copyright :
 * @date : 2018-05-22 14:17
 */
@RestController
@RequestMapping(value = "/userAddress",produces = "application/json")
public class UserAddressController {
    @Resource
    private UserAddressBo userAddressBo;

    @RequestMapping(value = "/queryUserAddressByPage",method = RequestMethod.GET)
    public ResponseVo queryUserAddressByPage(@RequestParam("pageNum")Integer pageNum,@RequestParam("length")Integer length){
        return userAddressBo.queryUserAddressByPage(pageNum,length);
    }
}
